.class public Lrexsee/natives/clazz/GalleryOnItemSelectedListener;
.super Ljava/lang/Object;
.source "GalleryOnItemSelectedListener.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemSelectedListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemSelectedListener;"
    }
.end annotation


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mGallery:Landroid/widget/Gallery;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Landroid/widget/Gallery;)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "gallery"    # Landroid/widget/Gallery;

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    iput-object p1, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mBrowser:Lrexsee/core/browser/Browser;

    .line 20
    iput-object p2, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mGallery:Landroid/widget/Gallery;

    .line 21
    return-void
.end method


# virtual methods
.method public onItemSelected(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 25
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    iget-object v1, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mGallery:Landroid/widget/Gallery;

    invoke-virtual {v1}, Landroid/widget/Gallery;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/natives/ViewTag;

    .line 26
    .local v0, "tag":Lrexsee/natives/ViewTag;
    if-eqz v0, :cond_0

    .line 27
    iget-object v1, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onJavaGalleryChanged"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    iget-object v5, v0, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    invoke-static {p3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 29
    :cond_0
    return-void
.end method

.method public onNothingSelected(Landroid/widget/AdapterView;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;)V"
        }
    .end annotation

    .prologue
    .line 32
    .local p1, "arg0":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    iget-object v1, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mGallery:Landroid/widget/Gallery;

    invoke-virtual {v1}, Landroid/widget/Gallery;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/natives/ViewTag;

    .line 33
    .local v0, "tag":Lrexsee/natives/ViewTag;
    if-eqz v0, :cond_0

    .line 34
    iget-object v1, p0, Lrexsee/natives/clazz/GalleryOnItemSelectedListener;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onJavaGalleryChanged"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    iget-object v5, v0, Lrexsee/natives/ViewTag;->id:Ljava/lang/String;

    aput-object v5, v3, v4

    const/4 v4, 0x1

    const-string v5, "-1"

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 36
    :cond_0
    return-void
.end method
